Fec code and code rate selection based on packet size

ABSTRACT

Techniques for encoding and decoding data are described. In an aspect, multiple code rates for a forward error correction (FEC) code may be supported, and a suitable code rate may be selected based on packet size. A transmitter may obtain at least one threshold to use for code rate selection, determine a packet size to use for data transmission, and select a code rate from among the multiple code rates based on the packet size and the at least one threshold. In another aspect, multiple FEC codes of different types (e.g., Turbo, LDPC, and convolutional codes) may be supported, and a suitable FEC code may be selected based on packet size. The transmitter may obtain at least one threshold to use for FEC code selection and may select an FEC code from among the multiple FEC codes based on the packet size and the at least one threshold.

The present application claims priority to provisional U.S. ApplicationSer. No. 60/883,715, entitled “OPTIONAL RATE-1/3 CODE BASED ON ATCAPABILITY,” filed Jan. 5, 2007, assigned to the assignee hereof andincorporated herein by reference.

BACKGROUND

I. Field

The present disclosure relates generally to communication, and morespecifically to techniques for encoding and decoding data.

II. Background

In a communication system, a transmitter may encode a packet of data toobtain code bits, interleave or reorder the code bits, and map theinterleaved bits to modulation symbols. The transmitter may then processand transmit the modulation symbols via a communication channel. Thecommunication channel may distort the data transmission with aparticular channel response and further degrade the data transmissionwith noise and interference. A receiver may obtain received symbols,which may be distorted and degraded versions of the transmittedmodulation symbols, and may process the received symbols to recover thetransmitted packet.

Encoding by the transmitter may allow the receiver to reliably recoverthe transmitted packet based on the degraded received symbols. Thetransmitter may perform encoding based on a forward error correction(FEC) code that generates redundancy in the code bits. The amount ofredundancy is determined by a code rate of the FEC code. Too littleredundancy may result in the receiver being unable to decode the packet.Conversely, too much redundancy may result in under-utilization of thecapacity of the communication channel and/or other adverse effects.

There is therefore a need in the art for techniques to efficientlyencode and decode data.

SUMMARY

Techniques for efficiently encoding and decoding data are describedherein. In an aspect, multiple code rates for an FEC code may besupported, and a suitable code rate may be selected based on packetsize. In general, higher code rates may be used for larger packet sizes,and lower code rates may be used for smaller packet sizes. This mayimprove decoding performance for a receiver with a limited size memory.

In one design, a transmitter (e.g., a base station) may obtain at leastone threshold to use for code rate selection (e.g., from a receiver suchas a terminal). The transmitter may determine a packet size to use fordata transmission. The transmitter may then select a code rate fromamong multiple code rates for an FEC code based on the packet size andthe at least one threshold. The FEC code may be a Turbo code, a lowdensity parity check (LDPC) code, a convolutional code, or some othercode. The transmitter may encode a packet in accordance with a base coderate for the FEC code to obtain a coded packet and may puncture thecoded packet, if needed, to obtain the selected code rate for thepacket. The transmitter may then transmit the coded packet, after anypuncturing, to the receiver.

In another aspect, multiple FEC codes of different types may besupported, and a suitable FEC code may be selected based on packet size.In one design, a transmitter may obtain at least one threshold to usefor FEC code selection and may determine a packet size to use for datatransmission. The transmitter may then select an FEC code from amongmultiple FEC codes of different types based on the packet size and theat least one threshold. The transmitter may encode a packet inaccordance with the selected FEC code to obtain a coded packet and mayfurther process and transmit the coded packet.

A receiver may perform the complementary processing to recover a packetsent by a transmitter. Various aspects and features of the disclosureare described in further detail below.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a wireless communication system.

FIG. 2 shows data transmission with HARQ.

FIG. 3 shows a block diagram of a base station and a terminal.

FIG. 4 shows encoding and decoding for data transmission.

FIG. 5 shows a plot of code rate versus packet size.

FIG. 6 shows a plot of FEC code versus packet size.

FIG. 7 shows a block diagram of a transmit (TX) data processor.

FIG. 8 shows a block diagram of a Turbo encoder.

FIG. 9 shows a block diagram of a convolutional encoder.

FIG. 10 shows a block diagram of a receive (RX) data processor.

FIGS. 11 and 12 show a process and an apparatus, respectively, fortransmitting data with code rate selection based on packet size.

FIGS. 13 and 14 show a process and an apparatus, respectively, forreceiving data with code rate selection based on packet size.

FIGS. 15 and 16 show a process and an apparatus, respectively, fortransmitting data with FEC code selection based on packet size.

FIGS. 17 and 18 show a process and an apparatus, respectively, forreceiving data with FEC code selection based on packet size.

DETAILED DESCRIPTION

The techniques described herein may be used for various wirelesscommunication systems and networks. The terms “system” and “network” areoften used interchangeably. For example, the techniques may be used forwireline communication systems, wireless communication systems, wirelesslocal area networks (WLANs), etc. The wireless communication systems maybe Code Division Multiple Access (CDMA) systems, Time Division MultipleAccess (TDMA) systems, Frequency Division Multiple Access (FDMA)systems, Orthogonal FDMA (OFDMA) systems, Single-Carrier FDMA (SC-FDMA)systems, etc. A CDMA system may implement a radio technology such ascdma2000, Universal Terrestrial Radio Access (UTRA), etc. An OFDMAsystem may implement a radio technology such as Ultra Mobile Broadband(UMB), Evolved UTRA (E-UTRA), IEEE 802.16, IEEE 802.20, Flash-OFDM®,etc. UTRA and E-UTRA are described in documents from an organizationnamed “3rd Generation Partnership Project” (3GPP). cdma2000 and UMB aredescribed in documents from an organization named “3rd GenerationPartnership Project 2” (3GPP2). These various radio technologies andstandards are known in the art. For clarity, certain aspects of thetechniques are described below for UMB, and UMB terminology is used inmuch of the description below. UMB is described in 3GPP2 C.S0084-001,entitled “Physical Layer for Ultra Mobile Broadband (UMB) Air InterfaceSpecification,” August 2007, which is publicly available.

FIG. 1 shows a wireless communication system 100, which may also bereferred to as an access network (AN). For simplicity, only one basestation 110 and two terminals 120 and 122 are shown in FIG. 1. A basestation is a station that communicates with the terminals. A basestation may also be referred to as an access point, a Node B, an evolvedNode B, etc. A terminal may be stationary or mobile and may also bereferred to as an access terminal (AT), a mobile station, a userequipment, a subscriber unit, a station, etc. A terminal may be acellular phone, a personal digital assistant (PDA), a wirelesscommunication device, a wireless modem, a handheld device, a laptopcomputer, a cordless phone, etc. A terminal may communicate with one ormore base stations on the forward and/or reverse links at any givenmoment. The forward link (or downlink) refers to the communication linkfrom the base stations to the terminals, and the reverse link (oruplink) refers to the communication link from the terminals to the basestations.

The system may support hybrid automatic retransmission (HARQ). For HARQ,a transmitter may send one or more transmissions for a packet until thepacket is decoded correctly by a receiver, or the maximum number oftransmissions has been sent, or some other termination condition isencountered. HARQ may improve reliability of data transmission.

FIG. 2 shows data transmission on the forward link with HARQ. Thetransmission timeline may be partitioned into frames, with each framehaving a particular time duration. Multiple (Q) HARQ interlaces may bedefined, where Q may be a fixed or configurable value. For example, Qmay be equal to 4, 6, 8, etc. Each HARQ interlace may include framesthat are spaced apart by Q frames. Thus, HARQ interlace q may includeframes n+q, n+Q+q, n+2Q+q, etc., for q {0, . . . , Q−1}.

Up to Q packets may be sent in parallel on the Q HARQ interlaces, onepacket per HARQ interlace. One or more HARQ transmissions may be sentfor each packet on the HARQ interlace used for that packet. An HARQtransmission is a transmission for one packet in one frame. A packet maybe processed (e.g., encoded and modulated) and sent such that it can bedecoded correctly with a target number of HARQ transmissions, which maybe 2, 3, 4, etc.

For data transmission on the forward link, terminal 120 may periodicallyestimate the forward link channel quality and send channel qualityindicator (CQI) to base station 110. Base station 110 may use the CQIand/or other information to select a packet format to use for each HARQtransmission to terminal 120. A packet format may be associated with apacket size, a spectral efficiency, a code rate, a modulation order orscheme, and/or other parameters for a packet or a transmission. Basestation 110 may process a packet (Packet 1) based on the selected packetformat and send the first HARQ transmission (Trans 1) on HARQ interlace0. Terminal 120 may receive the first HARQ transmission, decode Packet 1in error, and send a negative acknowledgment (NAK). Base station 110 mayreceive the NAK and send a second HARQ transmission (Trans 2) for Packet1 on the same HARQ interlace 0. Terminal 120 may receive the second HARQtransmission, decode Packet 1 correctly based on the first and secondHARQ transmissions, and send an acknowledgement (ACK). Base station 110may receive the ACK and process and send another packet (Packet 2) onHARQ interlace 0 in similar manner.

For simplicity, FIG. 2 shows data transmission on one HARQ interlace toterminal 120. Base station 110 may transmit up to Q packets in parallelon up to Q HARQ interlaces to terminal 120. These packets may start andend at different times.

FIG. 3 shows a block diagram of a design of base station 110 andterminal 120 in FIG. 1. In this design, base station 110 is equippedwith S antennas 324 a through 324 s, and terminal 120 is equipped with Tantennas 352 a through 352 t, where in general S≧1 and T≧1.

On the forward link, at base station 110, a TX data processor 310 mayreceive a packet of data for terminal 120 from a data source 308,process (e.g., encode, interleave, and symbol map) the packet based on apacket format, and provide data symbols, which are modulation symbolsfor data. A TX MIMO processor 320 may multiplex the data symbols withpilot symbols, perform direct MIMO mapping or precoding/beamforming ifapplicable, and provide S output symbol streams to S transmitters (TMTR)322 a through 322 s. Each transmitter 322 may process its output symbolstream (e.g., for OFDM) to obtain an output chip stream. Eachtransmitter 322 may further condition (e.g., convert to analog, filter,amplify, and upconvert) its output chip stream and generate a forwardlink signal. S forward link signals from transmitters 322 a through 322s may be transmitted from S antennas 324 a through 324 s, respectively.

At terminal 120, T antennas 352 a through 352 t may receive the forwardlink signals from base station 110, and each antenna 352 may provide areceived signal to a respective receiver (RCVR) 354. Each receiver 354may process (e.g., filter, amplify, downconvert, and digitize) itsreceived signal to obtain samples, further process the samples (e.g.,for OFDM) to obtain received symbols, and provide the received symbolsto a MIMO detector 356. MIMO detector 356 may perform MIMO detection onthe received symbols, if applicable, and provide detected symbols. An RXdata processor 360 may further process (e.g., symbol demap,deinterleave, and decode) the detected symbols and provide decoded datato a data sink 362. In general, the processing by MIMO detector 356 andRX data processor 360 is complementary to the processing by TX MIMOprocessor 320 and TX data processor 310 at base station 110.

On the reverse link, at terminal 110, a packet of data may be providedby data source 378 and processed (e.g., encoded, interleaved, and symbolmapped) by a TX data processor 380. The data symbols from TX dataprocessor 380 may be multiplexed with pilot symbols and spatiallyprocessed by a TX MIMO processor 382, and further processed bytransmitters 354 a through 354 t to obtain T reverse link signals, whichmay be transmitted via antennas 352 a through 352 t. At base station110, the reverse link signals from terminal 120 may be received byantennas 324 a through 324 s, processed by receivers 322 a through 322s, detected by a MIMO detector 338, and further processed by an RX dataprocessor 340 to recover the packet sent by terminal 120.

Controllers/processors 330 and 370 may direct the operation at basestation 110 and terminal 120, respectively. Controllers/processors 330and/or 370 may also perform code rate selection and/or FEC codeselection for data transmission on the forward and reverse links, asdescribed below. Memories 332 and 372 may store data and program codesfor base station 110 and terminal 120, respectively.

The techniques described herein may be used for data transmission on theforward link as well as the reverse link. For clarity, certain aspectsare described below for data transmission on the forward link.

FIG. 4 shows encoding and decoding for data transmission on the forwardlink. At base station 110, a packet of K information bits may be encodedby a rate 1/R FEC encoder to generate a coded packet of approximatelyK·R code bits. The code bits may be mapped to modulation symbols, whichmay be further processed and transmitted via a communication link. Atterminal 120, the transmission received via the communication link maybe processed to obtain detected symbols, which may be further processedto obtain up to K·R log-likelihood ratios (LLRs) for up to K·R code bitsreceived for the packet. A modulation symbol may be obtained by mappingB code bits to a complex value in a signal constellation, where B≧1. BLLRs may be computed for the B code bits of the modulation symbol basedon a corresponding detected symbol. The LLR for each code bit mayindicate the likelihood of that code bit being zero (‘0’) or one (‘1’)given the detected symbol for the code bit. A rate 1/R FEC decoder maydecode the LLRs to obtain a decoded packet of K information bits.

If HARQ is used for data transmission, then a fraction of the K·R codebits for the packet may be sent in each HARQ transmission. If all K·Rcode bits have been sent and the packet is still not decoded correctly,then some or all of the same code bits may be resent in subsequent HARQtransmissions. The LLRs for code bits that are resent in a later HARQtransmission may be combined with the LLRs for the same code bitsreceived in a prior HARQ transmission.

In general, better decoding performance may be obtained by using a lowercode rate so that different code bits are sent for the packet. However,a lower code rate may also result in storage of more LLRs. Conversely, ahigher code rate may provide fewer code bits and hence result in storageof fewer LLRs. However, a higher code rate may result in worse decodingperformance. A suitable code rate may be selected based on a tradeoffbetween memory requirement and decoding performance.

The packet size of a packet may be selected in various manners. In onedesign, the packet size may be selected as follows:

Packet size=HARQ _(target) *SE _(target) *N _(resources),  Eq (1)

where HARQ_(target) is the target number of HARQ transmissions for thepacket,

-   -   SE_(target) is a target spectral efficiency for the packet, and    -   N_(resources) is the amount of physical resources used to send        the packet.

The target spectral efficiency may be selected based on the reportedCQI, e.g., higher target spectral efficiency for higher CQI. The packetsize may also be selected based on other sets of parameters.

Terminal 120 may compute LLRs for code bits as data symbols for thepacket are received and may temporarily store the LLRs in a buffermemory. The memory may have a fixed size and may be able to store up toM LLRs. The memory size M may be any value and may be dependent on theterminal capability. The relationship between packet size, code rate,and memory size may be expressed as:

$\begin{matrix}{\mspace{11mu} {\frac{{Packet}\mspace{14mu} {size}}{{Code}\mspace{14mu} {rate}} \leq {{Memory}\mspace{14mu} {{size}.}}}} & {{Eq}\mspace{20mu} (2)}\end{matrix}$

As shown in equation (2), for a given memory size M, there is a tradeoffbetween packet size K and code rate 1/R. For example, a memory capableof storing 10,000 LLRs may support a packet size of 2000 information bitwith a code rate of 1/5, a packet size of 3333 with a code rate of 1/3,a packet size of 5000 with a code rate of 1/2, a packet size of 6666with a code rate of 2/3, etc.

Equation (2) assumes that a single packet is sent and that the memoryonly stores LLRs for this packet. As described above for FIG. 2, up to Qpackets may be sent in parallel on up to Q different HARQ interlaces. Inthis case, the memory may be partitioned into up to Q sections, witheach section storing LLRs for one packet. The relationship betweenpacket size, code rate, number of HARQ interlaces, and memory size maythen be expressed as:

$\begin{matrix}{{\frac{{Packet}\mspace{14mu} {size}}{{Code}\mspace{14mu} {rate}}*{Number}\mspace{14mu} {of}\mspace{14mu} {HARQ}\mspace{14mu} {interlaces}} \leq {{Memory}\mspace{14mu} {{size}.}}} & {{Eq}\mspace{20mu} (3)}\end{matrix}$

The number of HARQ interlaces in equation (3) may be the number of HARQinterlaces (Q) available for data transmission, the number of HARQinterlaces used for data transmission, etc.

In an aspect, different code rates of an FEC code may be used for datatransmission depending on packet size. In general, higher code rates maybe used for larger packet sizes, and lower code rates may be used forsmaller packet sizes.

FIG. 5 shows a plot of code rate versus packet size in accordance withone design. In this design, four FEC code rates of 1/5, 1/3, 1/2 and 2/3are supported. Rate 1/5 FEC code is selected if the packet size is equalto or less than a first threshold MaxRateOneFifthPacketSize. Rate 1/3FEC code is selected if the packet size is greater thanMaxRateOneFifthPacketSize and equal to or less than a second thresholdMaxRateOneThirdPacketSize. Rate 1/2 FEC code is selected if the packetsize is greater than MaxRateOneThirdPacketSize and equal to or less thana third threshold MaxRateOneHalfPacketSize. Rate 2/3 FEC code isselected if the packet size is greater than MaxRateOneHalfPacketSize.Table 1 summarizes the code rate selection for the design shown in FIG.5.

TABLE 1 FEC Code Code Rate Selection Criterion Rate ⅕ Packet size ≦MaxRateOneFifthPacketSize Rate ⅓ MaxRateOneFifthPacketSize < Packet size≦ MaxRateOneThirdPacketSize Rate ½ MaxRateOneThirdPacketSize < Packetsize ≦ MaxRateOneHalfPacketSize Rate ⅔ MaxRateOneHalfPacketSize < Packetsize

If multiple HARQ interlaces can be used for data transmission, then thethresholds in Table 1 may be set based on the number of HARQ interlaces.In one design, the thresholds may be set as follows:

If Q = 8 HARQ interlaces are available for use, then  MaxRateOneFifthPacketSize =   MaxRateOneFifthPacketSizeEightInterlace,  MaxRateOneThirdPacketSize =   MaxRateOneThirdPacketSizeEightInterlace,and   MaxRateOneHalfPacketSize =  MaxRateOneHalfPacketSizeEightInterlace. If Q = 6 HARQ interlaces areavailable for use, then   MaxRateOneFifthPacketSize =  MaxRateOneFifthPacketSizeSixInterlace,   MaxRateOneThirdPacketSize =  MaxRateOneThirdPacketSizeSixInterlace, and   MaxRateOneHalfPacketSize=   MaxRateOneHalfPacketSizeSixInterlace.

The number of HARQ interlaces may be configurable and set by the system.MaxRateOneFifthPacketSizeEightInterlace,MaxRateOneThirdPacketSizeEightInterlace,MaxRateOneHalfPacketSizeEightInterlace,MaxRateOneFifthPacketSizeSixlnterlace,MaxRateOneThirdPacketSizeSixlnterlace, andMaxRateOneHalfPacketSizeSixInterlace may be configurable attributes.Terminal 120 may determine the values of these configurable attributesbased on its memory size, the number of HARQ interlaces, and/or otherparameters. In one design, the thresholds for code rate selection may bedetermined as follows:

$\begin{matrix}{{{{Threshold}(r)} = \frac{\beta*{Memory}\mspace{14mu} {size}*{Code}\mspace{14mu} {{rate}(r)}}{{Number}\mspace{14mu} {of}\mspace{14mu} {HARQ}\mspace{14mu} {interlaces}}},} & {{Eq}\mspace{20mu} (4)}\end{matrix}$

where code rate(r) may be equal to 1/5, 1/2, 1/3, or 2/3,

-   -   β is a value less than 1.0 and used to provide a margin, and    -   threshold(r) is a threshold for code rate(r) for a given number        of HARQ interlace.

In one design, terminal 120 may determine the thresholds for all coderates supported for the FEC code, e.g., as shown in equation (4).Threshold(r) may correspond to the MaxRate parameters given above fordifferent numbers of HARQ interlaces. Terminal 120 may send thethresholds or attribute values as its capability to the system. Inanother design, terminal 120 may send capability information (e.g., itsmemory size) to the system. The system may then determine the thresholdsfor terminal 120 based on the capability information. In any case, thesystem may thereafter send data to terminal 120 in accordance with coderates selected based on these thresholds.

In general, the FEC code shown in FIG. 5 may be any type of FEC code.For example, the FEC code may be a Turbo code, a convolutional code, aLDPC code, a block code, or some other type of code.

The system may also support different types of FEC codes. In one design,the system may support a Turbo code, a convolutional code, and a LDPCcode. These different types of FEC codes may have differentcharacteristics and performance.

In another aspect, a suitable FEC code may be selected for use based onpacket size. The Turbo code may provide better decoding performance forlarger packets whereas the convolutional code may provide betterdecoding performance for smaller packets.

FIG. 6 shows a plot of FEC code versus packet size in accordance withone design. In this design, the convolutional code is selected for useif the packet size is less than or equal to a first threshold. The Turbocode is selected for use if the packet size is greater than the firstthreshold and less than or equal to a second threshold. The LDPC code isselected for use if the packet size is greater than the secondthreshold. In general, the first and second thresholds may each be afixed or configurable value. In one design, the first threshold is afixed value, which may be 128 bits or some other value. In one design,the second threshold is a configurable value that may be determined byterminal 120 and sent as its capability to the system.

In general, the system may support any combination of FEC codes ofdifferent types and any type of FEC code. Furthermore, the system maysupport any number of code rates and any code rate for each FEC code.For each FEC code with multiple code rates, a set of thresholds may bedetermined based on various factors such as the memory size of thereceiver, the number of HARQ interlaces available for use, the number ofHARQ interlaces used for data transmission, the number of packets tosend in parallel, the target number of HARQ transmissions, decodingspeed of the receiver, etc.

Terminal 120 may determine a set of thresholds for each FEC code withmultiple code rates and may send the thresholds for all FEC codes as itscapability to the system. The system may perform FEC code selection anddetermine a suitable FEC code to use for data transmission to terminal120 based on the packet size and the thresholds for different FEC codes.The system may also perform code rate selection for a selected FEC codebased on the packet size and the set of thresholds for that FEC code.

Although not shown in FIG. 6 for simplicity, one or more code rates maybe supported for each type of FEC code. In one design, the system maysupport rate 1/5, rate 1/3, rate 1/2 and rate 2/3 for the Turbo code.Three thresholds may be defined between the first and second thresholdsand used to select one of these four Turbo code rates. Alternatively oradditionally, the system may support rate 1/5, rate 1/3, rate 1/2 andrate 2/3 for the LDPC code. Three thresholds may be defined above thesecond threshold and used to select one of these four LDPC code rates.The system may also support multiple code rates for the convolutionalcode, and one or more thresholds may be used to select one of thesupported convolutional code rates.

If the thresholds for a given FEC code are determined based on thenumber of available HARQ interlaces (Q), then the same thresholds may beused regardless of the number of packets being sent in parallel. If thethresholds are determined based on the number of HARQ interlaces usedfor data transmission, then the thresholds may be computed based on thenumber of packets to send in parallel.

FIG. 7 shows a block diagram of a design of TX data processor 310, whichmay also be used for TX data processor 380 in FIG. 3. Within TX dataprocessor 310, a cyclic redundancy check (CRC) generator 710 may receivea packet of data, generate a CRC for the packet, and provide a formattedpacket having the CRC appended to the packet. The CRC may be used by areceiver to determine whether the packet is decoded correctly or inerror.

An FEC encoder 720 may receive the formatted packet, encode the packetin accordance with an FEC code selected for the packet, and provide acoded packet. In the design shown in FIG. 7, FEC encoder 720 includesswitches 722 and 752, a Turbo encoder 730, a convolutional encoder 740,and an LDPC encoder 750. Switch 722 may provide the formatted packet toTurbo encoder 730, convolutional encoder 740, or LDPC encoder 750depending on the selected FEC code. Turbo encoder 730 may encode theformatted packet in accordance with a base code rate (e.g., rate 1/5) ifthe Turbo code is selected. Convolutional encoder 740 may encode theformatted packet in accordance with a base code rate (e.g., rate 1/3) ifthe convolutional code is selected. LDPC encoder 750 may encode theformatted packet in accordance with a base code rate (e.g., rate 1/5) ifthe LDPC code is selected. The base code rate for an FEC code is thelowest code rate for the FEC code. Depending on the selected FEC code,switch 752 may provide the code bits from Turbo encoder 730,convolutional encoder 740, or LDPC encoder 750 as the coded packet.

An interleaver 760 may interleave or reorder the code bits from FECencoder 720 based on an interleaving scheme. In one design, interleaver760 implements a pruned bit-reversal interleaver (PBRI) described in theaforementioned 3GPP2 C.S0084-001 document. The PBRI may be functionallyequivalent to an approach where a coded packet is extended to a power oftwo by appending padding bits, the extended packet is interleaved inaccordance with a bit-reversal interleaver, and a permuted packet isobtained by reading the permuted bits and removing the padding bits.

A puncturing unit 762 may receive all code bits for the packet frominterleaver 760 and may puncture/discard zero or more code bits based onthe selected code rate, as described below. Unit 762 may provide theproper number of code bits based on the selected code rate and thepacket size. A repetition unit 764 may repeat the bits from unit 762, ifnecessary, to obtain the desired total number of bits. A scrambler 766may scramble the bits from unit 764 to randomize the data. A scramblingsequence may be generated based on a linear feedback shift register(LFSR) implementing a particular generator polynomial. The LFSR may beinitialized at the start of the packet with a seed value, which may bedetermined based on a MAC ID of terminal 120, a sector ID or pilot phaseof a serving sector, a packet format index for the packet, a frame indexof the first frame in which the packet is sent, and/or some otherparameter. Scrambler 766 may perform exclusive OR (XOR) of the bits fromunit 764 with the bits of the scrambling sequence to generate scrambledbits. A symbol mapper 768 may map the scrambled bits to modulationsymbols based on a selected modulation scheme such as QPSK, 16-QAM,64-QAM, etc.

FIG. 7 shows a specific design of TX data processor 310. A packet mayalso be processed in other manners. For example, the repetition and/orscrambling may be omitted or may be omitted for certain transmissions.

FIG. 8 shows a block diagram of a design of Turbo encoder 730 in FIG. 7.In this design, Turbo encoder 730 implements a parallel concatenatedconvolutional code (PCCC) and includes two constituent encoders 810 aand 810 b, a Turbo interleaver 830, and a multiplexer (Mux) 840. Turboencoder 730 encodes a packet of K information bits in accordance with abase code rate of 1/5 and provides a coded packet of about 5 K codebits.

Within Turbo encoder 730, Turbo interleaver 830 interleaves the Kinformation bits in the packet based on an interleaving scheme.Constituent encoder 810 a receive an X sequence composed of the Kinformation/input bits in the packet. Encoder 810 a encodes the Xsequence based on a first constituent code to obtain a Y₀ sequence ofparity bits and based on a second constituent code to obtain a Y₁sequence of parity bits. Similarly, constituent encoder 810 b receivesan X′ sequence composed of K interleaved bits from Turbo interleaver830. Encoder 810 b encodes the X′ sequence based on the firstconstituent code to obtain a Y₀′ sequence of parity bits and based onthe second constituent code to obtain a Y₁′ sequence of parity bits.

Within each constituent encoder 810, a switch 812 first passes all Kinput bits (up position) and then passes the bits from an adder 822(down position) for three clock cycles. An added 814 sums the bits fromswitch 812 with the bits from adder 822. Delay units 816, 818 and 820are coupled in series, with delay unit 816 receiving the output of adder814. Adder 822 sums the outputs of delay units 818 and 820 and providesits output to adder 814 and switch 812. An adder 824 sums the output ofadder 814 and the outputs of delay units 816 and 820 and provides paritybits for the Y₀ or Y₀′ sequence. An adder 826 sums the output of adder814 and the outputs of delay units 816, 818 and 820 and provides paritybits for the Y₁ or Y₁′ sequence. All adders are modulo-2 adders.Constituent encoder 810 a provides 3 K+9 code bits composed of the Xsequence of K systematic bits, the Y₀ sequence of K parity bits, the Y₁sequence of K parity bits, and 9 tail bits. Similarly, constituentencoder 810 b provides 3 K+9 code bits composed of the X′ sequence of Ksystematic bits, the Y₀′ sequence of K parity bits, the Y₁′ sequence ofK parity bits, and 9 tail bits.

Multiplexer 840 receives the 6 K+18 code bits from constituent encoders810 a and 810 b and provides 5 K+18 code bits in five sequences U, V₀,V₁, V₀′, and V₁′. The U sequence contains the K systematic bits in the Xsequence plus 6 tail bits from switch 812 in both constituent encoders810 a and 810 b. The V₀ sequence contains the K parity bits in the Y₀sequence plus 3 tail bits from adder 824 in constituent encoder 810 a.The V₁ sequence contains the K parity bits in the Y₁ sequence plus 3tail bits from adder 826 in constituent encoder 810 a. The V₀′ sequencecontains the K parity bits in the Y₀′ sequence plus 3 tail bits fromadder 824 in constituent encoder 810 b. The V₁′ sequence contains the Kparity bits in the Y₁′ sequence plus 3 tail bits from adder 826 inconstituent encoder 810 b.

Referring back to FIG. 7, in one design, interleaver 760 may interleavethe U sequence and provide a permuted U sequence. Interleaver 760 mayalso interleave the V₀ sequence to obtain an A₀ sequence, interleave theV₀′ sequence to obtain a B₀ sequence, and provide a permuted V₀/V₀′sequence composed of alternate bits from the A₀ and B₀ sequences.Interleaver 760 may also interleave the V₁ sequence to obtain an A₁sequence, interleave the V₁′ sequence to obtain a B₁ sequence, andprovide a permuted V₁/V₁′ sequence composed of alternate bits from theA₁ and B₁ sequences.

Puncturing unit 762 may receive the three permuted sequences frominterleaver 760 and provide a sufficient number of code bits based onthe selected code rate. If Turbo code rate 1/5 is selected, then unit762 may provide the permuted U sequence, followed by the permuted V₀/V₀′sequence, followed by the permuted V₁/V₁′ sequence. If Turbo code rate1/3 is selected, then unit 762 may provide the permuted U sequencefollowed by the permuted V₀/V₀′ sequence. The permuted V₁/V₁′ sequencemay be discarded. If Turbo code rate 1/2 is selected, then unit 762 mayprovide the permuted U sequence followed by the first K+3 bits of thepermuted V₀/V₀′ sequence. The remaining bits may be discarded. If Turbocode rate 2/3 is selected, then unit 762 may provide the permuted Usequence followed by the first └(K+3)/2┘ bits of the permuted V₀/V₀′sequence. The remaining bits may be discarded.

In the design shown in FIGS. 7 and 8, a rate 1/5 Turbo code is used asthe base code rate, and other code rates 1/3, 1/2 and 2/3 are obtainedby puncturing some of the code bits. This Turbo code design may allow asingle Turbo decoder to support all of the Turbo code rates. MultipleTurbo code rates may also be supported with other designs, e.g., withdifferent Turbo codes.

FIG. 9 shows a block diagram of a design of convolutional encoder 740 inFIG. 7. In this design, convolutional encoder 740 implements a rate 1/3convolutional code of constraint length 9. Within convolutional encoder740, eight delay units 912 a through 912 h are coupled in series, withdelay unit 912 a receiving the information/input bits of a packet. Anadder 914 sums the input of delay unit 912 a and the outputs of delayunits 912 b, 912 c, 912 e, 912 f, 912 g and 912 h and provides a V₀sequence of code bits. An adder 916 sums the input of delay unit 912 aand the outputs of delay units 912 a, 912 c, 912 d, 912 g and 912 h andprovides a V₁ sequence of code bits. An adder 918 sums the input ofdelay unit 912 a and the outputs of delay units 912 a, 912 b, 912 e and912 h and provides a V₂ sequence of code bits. A multiplexer 920multiplexes the V₀, V₁ and V₂ sequences and provides a coded packet ofabout 3 K code bits.

Referring back to FIG. 7, in one design, interleaver 760 may receive theV₀, V₁ and V₂ sequences from convolutional encoder 740 and provide apermuted V₀/V₁/V₂ sequence. Interleaver 760 may interleave the V₀sequence to obtain an A sequence, interleave the V₁ sequence to obtain aB sequence, and interleave the V₂ sequence to obtain a C sequence.Interleaver 760 may then provide the A sequence, followed by the Bsequence, followed by the C sequence as the permuted V₀/V₁/V₂ sequence.Multiple code rates may be supported for the convolutional code byencoding in accordance with the base code rate and puncturing to obtainhigher code rates. Multiple code rates may also be supported withdifferent convolutional codes.

LDPC encoder 750 may be implemented as described in the aforementioned3GPP2 C.S0084-001 document or in other manners known in the art.Multiple code rates may be supported for the LDPC code, e.g., asdescribed in the aforementioned 3GPP2 C.S0084-001 document.

FIG. 10 shows a block diagram of a design of RX data processor 360,which may also be used for RX data processor 340 in FIG. 3. Within RXdata processor 360, an LLR computation unit 1010 may receive thedetected symbols from MIMO detector 356 and may compute LLRs for codebits received for a packet based on the detected symbols. A descrambler1012 may descramble the LLRs based on the scrambling sequence used bythe transmitter. An LLR combiner 1014 may combine LLRs for repeated codebits, e.g., sent in later HARQ transmissions. An erasure insertion unit1016 may insert erasures for code bits not received for the packet. Anerasure may be an LLR of 0, which may indicate equal likelihood of acode bit being ‘0’ or ‘1’. The code bits not received may include codebits discarded by puncturing unit 762 in FIG. 7 as well as code bits notyet transmitted. A deinterleaver 1018 may deinterleave the LLRs fromunit 1016 in a manner complementary to the interleaving by interleaver760 in FIG. 7.

An FEC decoder 1020 may receive the LLRs for the packet, decode the LLRsin accordance with an FEC code selected for the packet, and provide adecoded packet. In the design shown in FIG. 10, FEC decoder 1020includes switches 1022 and 1052, a Turbo decoder 1030, a Viterbi decoder1040, and an LDPC decoder 1050. Switch 1022 may provide the LLRs toTurbo decoder 1030, Viterbi decoder 1040, or LDPC decoder 1050 dependingon the selected FEC code. Turbo decoder 1030 may decode the LLRs if theTurbo code is selected. Viterbi decoder 1040 may decode the LLRs if theconvolutional code is selected. LDPC decoder 1050 may decode the LLRs ifthe LDPC code is selected. Depending on the selected FEC code, switch1052 may provide the decoded bits from Turbo decoder 1030, Viterbidecoder 1040, or LDPC decoder 1050 as the decoded packet. A CRC checker1060 may check the decoded packet and provide decoding status for thepacket.

FIG. 11 shows a design of a process 1100 for transmitting data with coderate selection based on packet size. At least one threshold to use forcode rate selection may be obtained, e.g., received from a terminal orcomputed based on capability information (e.g., memory size) receivedfrom the terminal (block 1112). A packet size to use for datatransmission may be determined, e.g., as shown in equation (1) (block1114). A code rate may be selected from among a plurality of code ratesfor an FEC code based on the packet size and the at least one threshold,with progressively higher code rates being selected for progressivelylarger packet sizes (block 1116). The FEC code may comprise a Turbocode, an LDPC code, a convolutional code, or some other code. A packetmay be encoded in accordance with a base code rate for the FEC code toobtain a coded packet (block 1118). The coded packet may be punctured,if needed, to obtain the selected code rate for the packet (block 1120).The coded packet, after any puncturing, may be further processed andtransmitted (block 1122).

For block 1116, the packet size may be compared against the at least onethreshold, and the code rate may be selected from among the plurality ofcode rates based on the result of the comparison. In one design, theplurality of code rates may include code rate 1/5, code rate 1/3, coderate 1/2, and code rate 2/3. Code rate 1/5 may be selected if the packetsize is less than or equal to a first threshold. Code rate 1/3 may beselected if the packet size is greater than the first threshold and lessthan or equal to a second threshold. Code rate 1/2 may be selected ifthe packet size is greater than the second threshold and less than orequal to a third threshold. Code rate 2/3 may be selected if the packetsize is greater than the third threshold.

FIG. 12 shows a design of an apparatus 1200 for transmitting data withcode rate selection based on packet size. Apparatus 1200 includes meansfor obtaining at least one threshold to use for code rate selection(module 1212), means for determining a packet size to use for datatransmission (module 1214), means for selecting a code rate from among aplurality of code rates for an FEC code based on the packet size and theat least one threshold (module 1216), means for encoding a packet inaccordance with a base code rate for the FEC code to obtain a codedpacket (module 1218), means for puncturing the coded packet, if needed,to obtain the selected code rate for the packet (module 1220), and meansfor processing and transmitting the coded packet after any puncturing(module 1222).

FIG. 13 shows a design of a process 1300 for receiving data with coderate selection based on packet size. At least one threshold to use forcode rate selection may be determined, e.g., based on memory size, thenumber of HARQ interlaces available for data transmission, the number ofpackets to receive in parallel, etc. (block 1312). The at least onethreshold may be sent to a transmitter, e.g., a base station (block1314). Alternatively, capability information (e.g., the memory size) maybe sent to the transmitter, and the transmitter may determine the atleast one threshold based on the capability information.

A packet encoded in accordance with a selected code rate for an FEC codemay be received (block 1316). The FEC code may comprise a Turbo code, anLDPC code, a convolutional code, or some other code. The code rate maybe selected from among a plurality of code rates for the FEC code basedon a packet size of the packet and the at least one threshold. Thepacket may be decoded in accordance with the selected code rate for theFEC code (block 1318). For block 1318, LLRs may be computed for codebits received for the packet. Erasures may be inserted for code bits notreceived for the packet, e.g., code bits punctured or not yettransmitted. The packet may be decoded based on the LLRs for thereceived code bits and the erasures for the code bits not received.

FIG. 14 shows a design of an apparatus 1400 for receiving data with coderate selection based on packet size. Apparatus 1400 includes means fordetermining at least one threshold to use for code rate selection(module 1412), means for sending the at least one threshold to atransmitter (module 1414), means for receiving a packet encoded inaccordance with a selected code rate for an FEC code, with the code ratebeing selected from among a plurality of code rates for the FEC codebased on a packet size of the packet and the at least one threshold(module 1416), and means for decoding the packet in accordance with theselected code rate for the FEC code (module 1418).

FIG. 15 shows a design of a process 1500 for transmitting data with FECcode selection based on packet size. At least one threshold to use forFEC code selection may be obtained, e.g., received from a terminal orcomputed based on capability information (e.g., memory size) receivedfrom the terminal (block 1512). A packet size to use for datatransmission may be determined, e.g., as shown in equation (1) (block1514). An FEC code may be selected from among a plurality of FEC codesof different types based on the packet size and the at least onethreshold (block 1516). A packet may be encoded in accordance with theselected FEC code to obtain a coded packet (block 1518). The codedpacket may be processed and transmitted (block 1520).

For block 1516, the packet size may be compared against the at least onethreshold, and the FEC code may be selected from among the plurality ofFEC codes based on the result of the comparison. In one design, theplurality of FEC codes may include a Turbo code, an LDPC code, and aconvolutional code. The convolutional code may be selected if the packetsize is less than or equal to a first threshold. The Turbo code may beselected if the packet size is greater than the first threshold and lessthan or equal to a second threshold. The LDPC code may be selected ifthe packet size is greater than the second threshold.

FIG. 16 shows a design of an apparatus 1600 for transmitting data withFEC code selection based on packet size. Apparatus 1600 includes meansfor obtaining at least one threshold to use for FEC code selection(module 1612), means for determining a packet size to use for datatransmission (module 1614), means for selecting an FEC code from among aplurality of FEC codes of different types based on the packet size andthe at least one threshold (module 1616), means for encoding a packet inaccordance with the selected FEC code to obtain a coded packet (module1618), and means for processing and transmitting the coded packet(module 1620).

FIG. 17 shows a design of a process 1700 for receiving data with FECcode selection based on packet size. At least one threshold to use forFEC code selection may be determined, e.g., based on memory size, thenumber of HARQ interlaces available for data transmission, the number ofpackets to receive in parallel, etc. (block 1712). The at least onethreshold may be sent to a transmitter, e.g., a base station (block1714). Alternatively, capability information (e.g., the memory size) maybe sent to the transmitter and used by the transmitter to determine theat least one threshold.

A packet encoded in accordance with a selected FEC code may be received(block 1716). The FEC code may be selected from among a plurality of FECcodes of different types based on a packet size of the packet and the atleast one threshold. The plurality of FEC codes may include a Turbocode, an LDPC code, a convolutional code, etc. The packet may be decodedin accordance with the selected FEC code (block 1718). For block 1718,LLRs may be computed for code bits received for the packet. Erasures maybe inserted for code bits not received for the packet, e.g., code bitspunctured or not yet transmitted. The packet may be decoded based on theLLRs for the received code bits and the erasures for the code bits notreceived.

FIG. 18 shows a design of an apparatus 1800 for receiving data with FECcode rate selection based on packet size. Apparatus 1800 includes meansfor determining at least one threshold to use for FEC code selection(module 1812), means for sending the at least one threshold to atransmitter (module 1814), means for receiving a packet encoded inaccordance with a selected FEC code, with the FEC code being selectedfrom among a plurality of FEC codes of different types based on a packetsize of the packet and the at least one threshold (module 1816), andmeans for decoding the packet in accordance with the selected FEC code(module 1818).

The modules in FIGS. 12, 14, 16 and 18 may comprise processors,electronics devices, hardware devices, electronics components, logicalcircuits, memories, etc., or any combination thereof.

The techniques described herein may be implemented by various means. Forexample, these techniques may be implemented in hardware, firmware,software, or a combination thereof. For a hardware implementation, theprocessing units used to perform techniques at an entity (e.g., a basestation or a terminal) may be implemented within one or more applicationspecific integrated circuits (ASICs), digital signal processors (DSPs),digital signal processing devices (DSPDs), programmable logic devices(PLDs), field programmable gate arrays (FPGAs), processors, controllers,micro-controllers, microprocessors, electronic devices, other electronicunits designed to perform the functions described herein, a computer, ora combination thereof.

For a firmware and/or software implementation, the techniques may beimplemented with code (e.g., procedures, functions, modules,instructions, etc.) that performs the functions described herein. Ingeneral, any computer/processor-readable medium tangibly embodyingfirmware and/or software code may be used in implementing the techniquesdescribed herein. For example, the firmware and/or software code may bestored in a memory (e.g., memory 332 or 372 in FIG. 3) and executed by aprocessor (e.g., processor 330 or 370). The memory may be implementedwithin the processor or external to the processor. The firmware and/orsoftware code may also be stored in a computer/processor-readable mediumsuch as random access memory (RAM), read-only memory (ROM), non-volatilerandom access memory (NVRAM), programmable read-only memory (PROM),electrically erasable PROM (EEPROM), FLASH memory, floppy disk, compactdisc (CD), digital versatile disc (DVD), magnetic or optical datastorage device, etc. The code may be executable by one or morecomputers/processors and may cause the computer/processor(s) to performcertain aspects of the functionality described herein.

The previous description of the disclosure is provided to enable anyperson skilled in the art to make or use the disclosure. Variousmodifications to the disclosure will be readily apparent to thoseskilled in the art, and the generic principles defined herein may beapplied to other variations without departing from the spirit or scopeof the disclosure. Thus, the disclosure is not intended to be limited tothe examples and designs described herein but is to be accorded thewidest scope consistent with the principles and novel features disclosedherein.

1. An apparatus for communication, comprising: at least one processorconfigured to determine a packet size to use for data transmission, andto select a code rate from among a plurality of code rates for a forwarderror correction (FEC) code based on the packet size, with progressivelyhigher code rates being selected for progressively larger packet sizes;and a memory coupled to the at least one processor.
 2. The apparatus ofclaim 1, wherein the at least one processor is configured to compare thepacket size against at least one threshold and to select the code ratefrom among the plurality of code rates based on result of thecomparison.
 3. The apparatus of claim 2, wherein the at least oneprocessor is configured to receive the at least one threshold from aterminal and to select the code rate for data transmission to theterminal based on the packet size and the at least one threshold.
 4. Theapparatus of claim 2, wherein the at least one processor is configuredto receive capability information from a terminal, to determine the atleast one threshold based on the capability information, and to selectthe code rate for data transmission to the terminal based on the packetsize and the at least one threshold.
 5. The apparatus of claim 1,wherein the plurality of code rates comprise code rate 1/5, code rate1/3, and code rate 1/2.
 6. The apparatus of claim 5, wherein the atleast one processor is configured to select code rate 1/5 if the packetsize is less than or equal to a first threshold, to select code rate 1/3if the packet size is greater than the first threshold and less than orequal to a second threshold, and to select code rate 1/2 if the packetsize is greater than the second threshold and less than or equal to athird threshold.
 7. The apparatus of claim 6, wherein the plurality ofcode rates further comprise code rate 2/3, and wherein the at least oneprocessor is configured to select code rate 2/3 if the packet size isgreater than the third threshold.
 8. The apparatus of claim 1, whereinthe at least one processor is configured to encode a packet inaccordance with a base code rate for the FEC code to obtain a codedpacket, and to puncture the coded packet, if needed, to obtain theselected code rate for the packet.
 9. The apparatus of claim 1, whereinthe FEC code comprises a Turbo code.
 10. The apparatus of claim 1,wherein the FEC code comprises a low density parity check (LDPC) code.11. A method for communication, comprising: determining a packet size touse for data transmission; and selecting a code rate from among aplurality of code rates for a forward error correction (FEC) code basedon the packet size, with progressively higher code rates being selectedfor progressively larger packet sizes.
 12. The method of claim 11,further comprising: receiving at least one threshold from a terminal,and wherein the selecting the code rate comprises selecting the coderate for data transmission to the terminal based on the packet size andthe at least one threshold.
 13. The method of claim 11, wherein theplurality of code rates comprise code rate 1/5, code rate 1/3, and coderate 1/2, and wherein the selecting the code rate comprises selectingcode rate 1/5 if the packet size is less than or equal to a firstthreshold, selecting code rate 1/3 if the packet size is greater thanthe first threshold and less than or equal to a second threshold, andselecting code rate 1/2 if the packet size is greater than the secondthreshold and less than or equal to a third threshold.
 14. The method ofclaim 13, wherein the plurality of code rates further comprise code rate2/3, and wherein the selecting the code rate further comprises selectingcode rate 2/3 if the packet size is greater than the third threshold.15. The method of claim 11, further comprising: encoding a packet inaccordance with a base code rate for the FEC code to obtain a codedpacket; and puncturing the coded packet, if needed, to obtain theselected code rate for the packet.
 16. An apparatus for communication,comprising: means for determining a packet size to use for datatransmission; and means for selecting a code rate from among a pluralityof code rates for a forward error correction (FEC) code based on thepacket size, with progressively higher code rates being selected forprogressively larger packet sizes.
 17. The apparatus of claim 16,further comprising: means for receiving at least one threshold from aterminal, and wherein the means for selecting the code rate comprisesmeans for selecting the code rate for data transmission to the terminalbased on the packet size and the at least one threshold.
 18. Theapparatus of claim 16, wherein the plurality of code rates comprise coderate 1/5, code rate 1/3, and code rate 1/2, and wherein the means forselecting the code rate comprises means for selecting code rate 1/5 ifthe packet size is less than or equal to a first threshold, means forselecting code rate 1/3 if the packet size is greater than the firstthreshold and less than or equal to a second threshold, and means forselecting code rate 1/2 if the packet size is greater than the secondthreshold and less than or equal to a third threshold.
 19. The apparatusof claim 18, wherein the plurality of code rates further comprise coderate 2/3, and wherein the means for selecting the code rate furthercomprises means for selecting code rate 2/3 if the packet size isgreater than the third threshold.
 20. The apparatus of claim 16, furthercomprising: means for encoding a packet in accordance with a base coderate for the FEC code to obtain a coded packet; and means for puncturingthe coded packet, if needed, to obtain the selected code rate for thepacket.
 21. A computer program product, comprising: a computer-readablemedium comprising: code for causing at least one computer to determine apacket size to use for data transmission; and code for causing the atleast one computer to select a code rate from among a plurality of coderates for a forward error correction (FEC) code based on the packetsize, with progressively higher code rates being selected forprogressively larger packet sizes.
 22. An apparatus for communication,comprising: at least one processor configured to receive a packetencoded in accordance with a selected code rate for a forward errorcorrection (FEC) code, the code rate being selected from among aplurality of code rates for the FEC code based on a packet size of thepacket, and to decode the packet in accordance with the selected coderate for the FEC code; and a memory coupled to the at least oneprocessor and configured to store the packet.
 23. The apparatus of claim22, wherein the at least one processor is configured to determine atleast one threshold to use for code rate selection and to send the atleast one threshold to a base station, and wherein the code rate for thepacket is selected based further on the at least one threshold.
 24. Theapparatus of claim 23, wherein the at least one processor is configuredto determine the at least one threshold based on a size of the memory.25. The apparatus of claim 23, wherein the at least one processor isconfigured to determine the at least one threshold based on number ofhybrid automatic retransmission (HARQ) interlaces available for datatransmission.
 26. The apparatus of claim 23, wherein the at least oneprocessor is configured to determine the at least one threshold based onnumber of packets to receive in parallel.
 27. The apparatus of claim 22,wherein the at least one processor is configured to send capabilityinformation to a base station, and wherein the code rate for the packetis selected based further on at least one threshold determined based onthe capability information.
 28. The apparatus of claim 22, wherein theat least one processor is configured to compute log-likelihood ratios(LLRs) for code bits received for the packet and to store the LLRs inthe memory.
 29. The apparatus of claim 28, wherein the at least oneprocessor is configured to insert erasures for code bits not receivedfor the packet and to decode the packet based on the LLRs for thereceived code bits and the erasures for the code bits not received. 30.A method for communication, comprising: receiving a packet encoded inaccordance with a selected code rate for a forward error correction(FEC) code, the code rate being selected from among a plurality of coderates for the FEC code based on a packet size of the packet; anddecoding the packet in accordance with the selected code rate for theFEC code.
 31. The method of claim 30, further comprising: determining atleast one threshold to use for code rate selection; and sending the atleast one threshold to a base station, wherein the code rate for thepacket is selected based further on the at least one threshold.
 32. Themethod of claim 30, wherein the decoding the packet comprises computinglog-likelihood ratios (LLRs) for code bits received for the packet,inserting erasures for code bits not received for the packet, anddecoding the packet based on the LLRs for the received code bits and theerasures for the code bits not received.
 33. An apparatus forcommunication, comprising: means for receiving a packet encoded inaccordance with a selected code rate for a forward error correction(FEC) code, the code rate being selected from among a plurality of coderates for the FEC code based on a packet size of the packet; and meansfor decoding the packet in accordance with the selected code rate forthe FEC code.
 34. The apparatus of claim 33, further comprising: meansfor determining at least one threshold to use for code rate selection;and means for sending the at least one threshold to a base station,wherein the code rate for the packet is selected based further on the atleast one threshold.
 35. The apparatus of claim 33, wherein the meansfor decoding the packet comprises means for computing log-likelihoodratios (LLRs) for code bits received for the packet, means for insertingerasures for code bits not received for the packet, and means fordecoding the packet based on the LLRs for the received code bits and theerasures for the code bits not received.
 36. An apparatus forcommunication, comprising: at least one processor configured todetermine a packet size to use for data transmission, and to select aforward error correction (FEC) code from among a plurality of FEC codesbased on the packet size; and a memory coupled to the at least oneprocessor.
 37. The apparatus of claim 36, wherein the at least oneprocessor is configured to compare the packet size against at least onethreshold and to select the FEC code from among the plurality of FECcodes based on result of the comparison.
 38. The apparatus of claim 37,wherein the at least one processor is configured to receive the at leastone threshold from a terminal and to select the FEC code for datatransmission to the terminal based on the packet size and the at leastone threshold.
 39. The apparatus of claim 37, wherein the at least oneprocessor is configured to receive capability information from aterminal, to determine the at least one threshold based on thecapability information, and to select the FEC code for data transmissionto the terminal based on the packet size and the at least one threshold.40. The apparatus of claim 36, wherein the plurality of FEC codescomprise a convolutional code and a Turbo code.
 41. The apparatus ofclaim 40, wherein the at least one processor is configured to select theconvolutional code if the packet size is less than or equal to a firstthreshold, and to select the Turbo code if the packet size is greaterthan the first threshold and less than or equal to a second threshold.42. The apparatus of claim 41, wherein the plurality of FEC codesfurther comprise a low density parity check (LDPC) code, and wherein theat least one processor is configured to select the LDPC code if thepacket size is greater than the second threshold.
 43. A method forcommunication, comprising: determining a packet size to use for datatransmission; and selecting a forward error correction (FEC) code fromamong a plurality of FEC codes based on the packet size.
 44. The methodof claim 43, further comprising: receiving at least one threshold from aterminal, and wherein the selecting the FEC code comprises selecting theFEC code for data transmission to the terminal based on the packet sizeand the at least one threshold.
 45. The method of claim 43, wherein theplurality of FEC codes comprise a convolutional code and a Turbo code,and wherein the selecting the FEC code comprises selecting theconvolutional code if the packet size is less than or equal to a firstthreshold, and selecting the Turbo code if the packet size is greaterthan the first threshold and less than or equal to a second threshold.46. The method of claim 45, wherein the plurality of FEC codes furthercomprise a low density parity check (LDPC) code, and wherein theselecting the FEC code further comprises selecting the LDPC code if thepacket size is greater than the second threshold.
 47. An apparatus forcommunication, comprising: means for determining a packet size to usefor data transmission; and means for selecting a forward errorcorrection (FEC) code from among a plurality of FEC codes based on thepacket size.
 48. The apparatus of claim 47, further comprising: meansfor receiving at least one threshold from a terminal, and wherein themeans for selecting the FEC code comprises means for selecting the FECcode for data transmission to the terminal based on the packet size andthe at least one threshold.
 49. The apparatus of claim 47, wherein theplurality of FEC codes comprise a convolutional code and a Turbo code,and wherein the means for selecting the FEC code comprises means forselecting the convolutional code if the packet size is less than orequal to a first threshold, and means for selecting the Turbo code ifthe packet size is greater than the first threshold and less than orequal to a second threshold.
 50. The apparatus of claim 49, wherein theplurality of FEC codes further comprise a low density parity check(LDPC) code, and wherein the means for selecting the FEC code furthercomprises means for selecting the LDPC code if the packet size isgreater than the second threshold.
 51. A computer program product,comprising: a computer-readable medium comprising: code for causing atleast one computer to determine a packet size to use for datatransmission; and code for causing the at least one computer to select aforward error correction (FEC) code from among a plurality of FEC codesbased on the packet size.
 52. An apparatus for communication,comprising: at least one processor configured to receive a packetencoded in accordance with a forward error correction (FEC) codeselected from among a plurality of FEC codes based on a packet size ofthe packet, and to decode the packet in accordance with the selected FECcode; and a memory coupled to the at least one processor and configuredto store the packet.
 53. The apparatus of claim 52, wherein the at leastone processor is configured to determine at least one threshold to usefor FEC code selection and to send the at least one threshold to a basestation, and wherein the FEC code for the packet is selected basedfurther on the at least one threshold.
 54. The apparatus of claim 53,wherein the at least one processor is configured to determine the atleast one threshold based on a size of the memory.
 55. The apparatus ofclaim 53, wherein the at least one processor is configured to determinethe at least one threshold based on number of hybrid automaticretransmission (HARQ) interlaces available for data transmission. 56.The apparatus of claim 52, wherein the at least one processor isconfigured to send capability information to a base station, and whereinthe FEC code for the packet is selected based further on at least onethreshold determined based on the capability information.
 57. Theapparatus of claim 52, wherein the at least one processor is configuredto compute log-likelihood ratios (LLRs) for code bits received for thepacket and to store the LLRs in the memory.
 58. The apparatus of claim57, wherein the at least one processor is configured to insert erasuresfor code bits not received for the packet and to decode the packet basedon the LLRs for the received code bits and the erasures for the codebits not received.
 59. A method for communication, comprising: receivinga packet encoded in accordance with a forward error correction (FEC)code selected from among a plurality of FEC codes based on a packet sizeof the packet; and decoding the packet in accordance with the selectedFEC code.
 60. The method of claim 59, further comprising: determining atleast one threshold to use for FEC code selection; and sending the atleast one threshold to a base station, wherein the FEC code for thepacket is selected based further on the at least one threshold.
 61. Themethod of claim 59, wherein the decoding the packet comprises computinglog-likelihood ratios (LLRs) for code bits received for the packet,inserting erasures for code bits not received for the packet, anddecoding the packet based on the LLRs for the received code bits and theerasures for the code bits not received.
 62. An apparatus forcommunication, comprising: means for receiving a packet encoded inaccordance with a forward error correction (FEC) code selected fromamong a plurality of FEC codes based on a packet size of the packet; andmeans for decoding the packet in accordance with the selected FEC code.63. The apparatus of claim 62, further comprising: means for determiningat least one threshold to use for FEC code selection; and means forsending the at least one threshold to a base station, wherein the FECcode for the packet is selected based further on the at least onethreshold.
 64. The apparatus of claim 62, wherein the means for decodingthe packet comprises means for computing log-likelihood ratios (LLRs)for code bits received for the packet, means for inserting erasures forcode bits not received for the packet, and means for decoding the packetbased on the LLRs for the received code bits and the erasures for thecode bits not received.